.active-gallery .container-fluid {
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

.active-gallery {
	--fragment-color-primary: var(--color-primary);
	--fragment-color-secondary: var(--color-secondary);
}

.active-gallery img {
	background-color: var(--color-tertiary);
	object-fit: cover;
	width: 100%;
	height: 100%;
}

.active-gallery .gallery-grid {
	display: flex;
	width: 100%;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 10px;
}

.active-gallery .card {
	border: none;
	border-radius: 0 !important;
	background-color: transparent;
	overflow: hidden;
	margin: 0 !important;
	position: relative;
	flex: 1 0 auto;
}

.active-gallery .card:nth-child(6n + 1),
.active-gallery .card:nth-child(6n + 2) {
	aspect-ratio: 4/3;
	width: calc(100% / 2 - 10px);
}

.active-gallery .card:nth-child(6n + 3),
.active-gallery .card:nth-child(6n + 4),
.active-gallery .card:nth-child(6n + 5) {
	aspect-ratio: 4/5;
	width: calc(100% / 3 - 20px);
}

.active-gallery .card:nth-child(6n + 6) {
	aspect-ratio: 21/9;
	width: 100%;
}

@media (max-width: 991px) {
	.active-gallery .card:nth-child(n) {
		width:100%;
	}
}

.active-gallery .gallery-grid > .card > img {
	transition: transform 2.2s cubic-bezier(0.14, 0.4, 0.09, 0.99);
	transform: scale(1);
}

.active-gallery .gallery-grid > .card > img:hover {
	transform: scale(1.1);
}
